package com.example.demo;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class showAdressActivity extends AppCompatActivity {
    private TextView t1;
    private TextView t2;
    private TextView t3;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show_adress);

        Intent intent = getIntent();
        String userProvince = intent.getStringExtra("UP");
        String userCity =intent.getStringExtra("UC");
        String userArea =intent.getStringExtra("UA");

        t1 = findViewById(R.id.content_province);
        t1.setText(userProvince);

        t2 = findViewById(R.id.content_city);
        t2.setText(userCity);

        t3 = findViewById(R.id.content_area);
        t3.setText(userArea);

    }
}
